﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for SessionManager
/// </summary>
public class SessionManager
{


    public static string PlayerPositionHorizontal
    {
        get
        {
            if (CurrentSession["PlayerPositionHorizontal"] == null)
            {
                return "Right";
            }

            return (string)CurrentSession["PlayerPositionHorizontal"];
        }
        set
        {
            CurrentSession["PlayerPositionHorizontal"] = value;
        }
    }

    public static string PlayerPosition
    {
        get
        {
            if (CurrentSession["PlayerPosition"] == null)
            {
                return "Bottom";
            }

            return (string)CurrentSession["PlayerPosition"];
        }
        set
        {
            CurrentSession["PlayerPosition"] = value;
        }
    }

    public static string PlayerSize
    {
        get
        {
            if (CurrentSession["PlayerSize"] == null)
            {
                return "Medium";
            }

            return (string)CurrentSession["PlayerSize"];
        }
        set
        {
            CurrentSession["PlayerSize"] = value;
        }
    }


    public static System.Web.SessionState.HttpSessionState CurrentSession
    {
        get
        {
            return HttpContext.Current.Session;
        }
    }
}
